<?php get_header() ?>                                    
<div id="main">                                                                             
    <div id="middle-main">
        <div id="left">
            <?php
            if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left')) {
                
            }
            ?>                                 
        </div>
        <div id="content">            
            <div class="content-detail">
                <div class="frame-content">
                    <h2 class="content-title">
                        Tin tức
                    </h2>
                    <div class="content-detail">
                        <?php if (have_posts()):while (have_posts()):the_post(); ?>
                                <div class="news-item">
                                    <div class="news-item-left">
                                        <a href="<?php the_permalink()?>">
                                            <?php
                                            if (has_post_thumbnail()) {
                                                the_post_thumbnail('full');
                                            }
                                            ?>
                                        </a>                                        
                                    </div>
                                    <div class="news-item-right">
                                        <h2 class="news-item-title">
                                            <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
                                        </h2>
                                        <h2 class="news-except"><?php the_excerpt(); ?></h2>
                                        <p class="news-readmore">
                                            <a href="<?php the_permalink() ?>">Chi tiết</a>
                                        </p>
                                    </div>                                    
                                </div>
                                <?php
                            endwhile;
                        endif;
                        ?>
                    </div>
                    <div class="gdl-pagination">
                        <?php wp_pagenavi(); ?>
                        <div class="clear"></div>                        
                    </div>
                </div>                
            </div>
        </div>
        <div id="right">
            <?php
            if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_right')) {
                
            }
            ?>
        </div>
    </div>    
</div>                        
<?php get_footer(); ?>